@extends('admin.app')

@section('breadcrumb')
<div class="bg-light lter b-b wrapper-md">
  <ol class="breadcrumb bg-light lter m-n no-padder">
    <li><a href="{{ admin_action('HomeController@index') }}">主页</a></li>
    <li>网站管理</li>
    <li><a href="{{ admin_action('Web\FriendlyLinksController@index') }}">友情链接管理</a></li>
    <li class="active">{{ $friendly_link->name }}</li>
  </ol>
</div>
@endsection

@section('content')
  <div class="panel panel-default">
    <div class="panel-heading font-bold">
      导航信息
    </div>
    <div class="panel-body">
      <form class="form-horizontal">
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-sm-2 text-right">图片*:</label>
          <div class="col-sm-7">
            @if($friendly_link->image)
              <div class="file-preview-frame file-preview-initial" id="preview-1453704120199-init_0"
                   data-fileindex="init_0">
                <img src="{{asset($friendly_link->image)}}" width="500">
              </div>
            @else
              无
            @endif
          </div>
        </div>

        <div class="form-group">
          <label class="col-sm-2 text-right">名称*:</label>
          <div class="col-sm-7">
            {{$friendly_link->name}}
          </div>
        </div>

        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label for="inputLink" class="col-sm-2 text-right">URL链接</label>
          <div class="col-sm-7">
            {{$friendly_link->link}}
          </div>
        </div>

        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label for="inputPosition" class="col-sm-2 text-right">友情链接类型*</label>
          <div class="col-sm-7">
            {{ \App\Admin\Eloquent\Code::findByCodeAndTypeId($friendly_link->link_type,\App\Admin\Eloquent\FriendlyLink::FRIENDLY_LINK_TYPE)->name  }}
          </div>
        </div>


        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label for="inputUser" class="col-sm-2 text-right">排序*</label>
          <div class="col-sm-7">
            {{$friendly_link->sort}}
          </div>
        </div>

        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label for="inputOx" class="col-sm-2 text-right">描述:</label>
          <div class="col-sm-7">{{$friendly_link->description}}</div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <div class="col-lg-4 col-lg-offset-2">
            <a href="{{ admin_action('Web\FriendlyLinksController@index') }}" class="btn btn-default">返&nbsp;回</a>
          </div>
        </div>
      </form>
    </div>
  </div>
@endsection